package com.shg.admin;

import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4.SpringRunner;

import javax.sql.DataSource;

@RunWith(SpringRunner.class)
@SpringBootTest
public class MyJunit4Test2 {
    
    @Autowired
    private DataSource dataSource;
    @Test
    public void test1(){
        System.out.println("数据库连接池类型："+dataSource.getClass());
    }
}
